<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/html">
<head>
	<meta charset="UTF-8">
	<title>用户管理主页面</title>
    <link th:href="@{/css/adminhome.css}" rel="stylesheet">
    <link th:href="@{/css/patientview.css}" rel="stylesheet">
    <script type="text/javascript" th:src="@{/js/jquery-3.2.1.min.js}"></script>
    <script type="text/javascript" th:src="@{/js/patientview.js}"></script>
    <style type="text/css">

    </style>
    <script type="text/javascript">

    </script>
</head>
<body th:style="'background-image: url(/img/bg.jpg)' ">
<!--头部-->
  <div id="head1">
      <h1><b>管理系统</b></h1>
      <a id="exit" th:href="@{logout.do}" onclick="return window.confirm('您确定要退出登陆吗?')">退出登陆</a>
  </div>
  <div id="head2">
    <ul class="">
      <li class="management"><a th:href="@{/viewHospital}"><h2>医院管理</h2></a></li>
      <li class="management"><a th:href="@{/patientlist}"><h2>用户管理</h2></a></li>
      <li class="management"><a th:href="@{/doctorManage/listDoctor}"><h2>医生管理</h2></a></li>
      <li class="management"><a th:href="@{/rolelist}"><h2>角色管理</h2></a></li>
      <li class="management"><a th:href="@{/systemnoticelist(noticeType = 1)}"><h2>系统公告</h2></a></li>
      <li class="management"><a th:href="@{/notice/enterNotice/{pageNum}(pageNum = 1)}"><h2>医院公告</h2></a></li>
    </ul>
  </div>
  <!--身体-->
  <div id="body">
    <h1>用户详情</h1>
    <br><br>
    <div id="query">
      <table th:border="1" th:cellspacing="0" th:cellpadding="0" id="patientview">
        <tr><td>姓名:</td><td><input type="text" th:value="${patient.name}"></td>
            <td>年龄:</td><td><input type="text" th:value="${patient.age}"></td>
        </tr>
        <tr><td>性别:</td><td><input type="text" th:value="${patient.gender}"></td>
            <td>身份证号:</td><td><input type="text" th:value="${patient.IDCard}"></td>
        </tr>
        <tr><td>姓名:</td><td><input type="text" th:value="${patient.phone}"></td>
            <td>住址:</td><td><input type="text" th:value="${patient.address}"></td>
        </tr>
        <tr><td>过往病史:</td><td><input type="text" th:value="${patient.medicalRecord}"></td>
            <td>身体状态:</td><td><input type="text" th:value="${patient.state}"></td>
        </tr>
        <tr><td>就诊状态:</td>
            <td>
                <span th:if ="${regState == 0}">
                    <input type="text" th:value="未挂号">
                </span>
                <span th:if ="${regState == 1}">
                    <input type="text" th:value="未就诊">
                </span>
                <span th:if ="${regState == 2}">
                    <input type="text" th:value="已就诊">
                </span>
            </td>
            <td>就诊时间:</td>
            <td>
              <span th:each="recordTime:${recordTimeList}">
                <input type="text" th:value="${#dates.format(recordTime,'yyyy-MM-dd')}"><br>
              </span>
            </td>
        </tr>
        <tr>
          <td colspan="4">
            <button th:text="返回" id="back"></button>
          </td>
        </tr>
      </table>
    </div>
  </div>
  <!--尾部-->
  <div id="footer">
        <ul class="footer">
          <li><a href="http://www.nhc.gov.cn/">国家卫生健康委员会</a><span class="vertical-bar">|</span></li>
          <li><a href="http://www.cma.org.cn/">中华医学会</a><span class="vertical-bar">|</span></li>
          <li><a href="http://wsjkw.henan.gov.cn/">河南省卫生健康委员会</a></li>
        </ul>
  </div>
</body>
</html>